package com.logic.saas.service;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.logic.saas.persistence.AddressMapper;
import com.logic.saas.pojo.AddressInfo;
import com.logic.saas.pojo.Ps;
@Service
public class AddressService {

	@Autowired
	private AddressMapper addressMapper;

	/**
	 * 
	 * @param address
	 * @return
	 * @throws Exception
	 */
	public boolean insert(AddressInfo address) throws Exception{
		boolean flag = false;
		Map<String , Object> paramMap = new HashMap<String, Object>();
		paramMap.put("address", address);
		Ps ps = new Ps(paramMap);
		addressMapper.inserAddress(ps);
		flag = true;
		return flag;
	}
	
}
